package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName: UserController
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @Author lh
 * @Date 2018/8/3 0003
 */
@Controller
@RequestMapping("/wmsOrderChannelRouter")
public class WmsOrderChannelRouter {
    @Autowired
    SysMenuService menuService;
    /* 跳转到订单渠道页面*/
    @RequestMapping(value = "/toOrderChannel/{menu}")
    public String toOrderChannel(@PathVariable("menu") String menu, Model model){
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "base/orderChannel/orderChannelList";
    }
    /* 跳转到编辑订单渠道页面*/
    @RequestMapping(value = "/editOrderChannel")
    public String toEditOrderChannel(){
        return "base/orderChannel/editOrderChannel";
    }
}
